package com.example.interfacecall.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class QuitApplyDto {
    @NotBlank(message = "appKey不能为空！")
    @JSONField(name = "appkey")
    private String appKey;

    @NotNull(message = "请求时间不能为空！")
    @JSONField(name = "timestamp")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date timestamp;

    @NotBlank(message = "业务流水号不能为空！")
    @JSONField(name = "applyno")
    private String applyNo;

    @NotBlank(message = "保函编号不能为空！")
    @JSONField(name = "baohanno")
    private String baoHanNo;

    @NotBlank(message = "退保原因不能为空！")
    @JSONField(name = "reson")
    private String reson;

    @NotBlank(message = "报文签名不能为空！")
    @JSONField(name = "sign")
    private String sign;

    /**
     * 新配置的json格式的参数
     */
    private String configParams;

}
